import Vue from 'vue'
import store from '@/store'
import './userDirective'

Vue.directive('auth', {
  inserted(el, { value, modifiers }) {
    if (!store.state.user.auths.includes(value)) {
      el.remove()
    }
  }
})
